cmake_minimum_required(VERSION 3.10)
project(SDL3_Engine)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

find_package(SDL3 REQUIRED)
find_package(SDL3_image REQUIRED)
find_package(SDL3_ttf REQUIRED)
find_package(SDL3_mixer REQUIRED)
find_package(glm REQUIRED)

include_directories("include")
file(GLOB_RECURSE SOURCES "src/*.cpp")

add_executable(TestMain test_main.cpp ${SOURCES})
target_link_libraries(TestMain PRIVATE SDL3::SDL3 SDL3_image::SDL3_image SDL3_ttf::SDL3_ttf SDL3_mixer::SDL3_mixer glm::glm)

add_library(Engine STATIC ${SOURCES})
target_link_libraries(Engine PRIVATE SDL3::SDL3 SDL3_image::SDL3_image SDL3_ttf::SDL3_ttf SDL3_mixer::SDL3_mixer glm::glm)